package com.ym.medical.domain.param;

import com.ym.common.annotations.CustomConstraint;
import com.ym.base.enums.FlagEnum;
import com.ym.medical.enums.AuditStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 主题对象 subject
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel(value = "主题-查询")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SubjectQueryParam {

    @ApiModelProperty("关联ID")
    private Long answerId;

    @ApiModelProperty("ID类型")
    private String answerType;

    @ApiModelProperty("用户(评论者id)")
    private Long userId;

    @ApiModelProperty("附件ID")
    private String attrId;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("审核人")
    private Long auditSb;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("审核状态 (01- 待审核 02-审核中 03-审核通过 04-审核未通过)")
    @CustomConstraint(AuditStateEnum.class)
    private String auditState;

    @ApiModelProperty("审核说明")
    private String auditRemark;

    @ApiModelProperty("点赞数")
    private Integer likeNum;

    @ApiModelProperty("热度值")
    private Double hotValue;

    @ApiModelProperty("公开状态(00-不公开 01-公开)")
    @CustomConstraint(FlagEnum.class)
    private String openStatus;

    @ApiModelProperty("创建人")
    private Long crtSb;

    @ApiModelProperty("修改人")
    private Long uptSb;

    @ApiModelProperty("删除标志")
    @CustomConstraint(FlagEnum.class)
    private String deleted;

    @ApiModelProperty("ids")
    private Long[] ids;
}
